#include <stdio.h>
#include <stdlib.h>
#include "sqlist.h"

void *c_int_list(Sqlist *list, int size)
{
	return malloc(sizeof(int) * size);
}

void d_int_list(Sqlist *list)
{
	free(list->data);
}

int main()
{
	Sqlist list;
	if (init_sqlist(&list, c_int_list, MAX_SIZE)) {
		printf("E: Init failed!");
		return -1;
	}
	if (destroy_sqlist(&list, d_int_list)) {
		printf("E: Destroied!");
		return -1;
	}
	exit(0);
}
